all : test LSGhid.o

# How we create LMShid.o
LSGhid.o : LSGhid.c LSGhid.h
	gcc -o LSGhid.o -c LSGhid.c

# The final output is one or more linked object files
test : test.c LSGhid.o LSGhid.h
#	gcc -o test -lm -lpthread -lusb test.c LSGhid.o /usr/lib/libhid.a
	gcc -o test -lm -lpthread -lusb test.c LSGhid.o

clean :
	rm -f LSGhid.o
	rm -f test
